using System;
using System.Collections.Generic;
using System.Text;

namespace Zaytsev.TSA.TransformsBranch
{
    public class MultiresolutionalAnalysisCoeficients : WaveletCoefficients
    {
        private List<decimal[]> approximation;
        private List<decimal[]> detalization;

        public MultiresolutionalAnalysisCoeficients()
        {
            approximation = new List<decimal[]>();
            detalization = new List<decimal[]>();
        }

        public override int Depth { get { return approximation.Count; } }

        public void AddLevel(decimal[] A, decimal[] D)
        {
            approximation.Add(A);
            detalization.Add(D);
        }

        public decimal[] Approx(int level)
        {
            return approximation[level];
        }

        public decimal[] Detail(int level)
        {
            return detalization[level];
        }

    }
}
